package com.jprocms.module.cms.controller.admin.mail.vo;

import com.jpro.framework.common.validation.InEnum;
import com.jprocms.module.cms.enums.EmailSceneEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Schema(description = "邮件验证码的使用 Request DTO")
@Data
public class EmailCodeUseReqDTO {

    @Schema(description = "邮箱", required = true, example = "111")
    @Email
    @NotEmpty(message = "邮箱不能为空")
    private String email;
    @Schema(description = "发送场景", required = true, example = "1")
    @NotNull(message = "发送场景不能为空")
    @InEnum(EmailSceneEnum.class)
    private Integer scene;
    @Schema(description = "验证码", required = true, example = "1024")
    @NotEmpty(message = "验证码")
    private String code;

}